package com.talent.core.protocol.mqtt.enums;

/**
 * @ClassName：TlQos
 * @Author: hszhou
 * @Date: 2024/11/21 17:58
 * @Description: 必须描述类做什么事情, 实现什么功能
 */
public enum TlMqttQos {

    QOS0(0),
    QOS1(1),
    QOS2(2)
    ;

    private final int value;



    TlMqttQos(int value){
        this.value =value;
    }

    public int getValue() {
        return value;
    }
    public static TlMqttQos valueOf(int value) {
        switch (value) {
            case 0:
                return QOS0;
            case 1:
                return QOS1;
            case 2:
                return QOS2;

            default:
                throw new IllegalArgumentException("invalid QoS: " + value);
        }
    }


}
